package org.fastsyncer.common.entity;

import java.util.List;
import java.util.Map;

public class DataSourceConnector {

	/**
	 * 配置信息
	 */
	private DataSourceConfig config;
	
	/**
	 * 元数据信息
	 */
	private List<Map<String, String>> metaInfo;

	/**
	 * 总条数
	 */
	private Integer rowCount = 0;
	
	public DataSourceConnector() {
		super();
	}

	public DataSourceConnector(List<Map<String, String>> metaInfo, Integer rowCount) {
		super();
		this.metaInfo = metaInfo;
		this.rowCount = rowCount;
	}

	public DataSourceConfig getConfig() {
		return config;
	}

	public void setConfig(DataSourceConfig config) {
		this.config = config;
	}

	public List<Map<String, String>> getMetaInfo() {
		return metaInfo;
	}

	public void setMetaInfo(List<Map<String, String>> metaInfo) {
		this.metaInfo = metaInfo;
	}

	public Integer getRowCount() {
		return rowCount;
	}

	public void setRowCount(Integer rowCount) {
		this.rowCount = rowCount;
	}

	@Override
	public String toString() {
		return "DataSourceConnector [config=" + config + ", metaInfo=" + metaInfo + ", rowCount=" + rowCount + "]";
	}

}
